package com.etcn.common.pojo;

import java.io.Serializable;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.etcn.common.Enum.DelFlag;

public class BaseEntity<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 统计年份(按年分表用)
	 */
	@JSONField(serialize = false)
	private String year;

	/**
	 * 分页起始记录
	 */
	@JSONField(serialize = false)
	private Integer start;

	/**
	 * 分页每页条数
	 */
	@JSONField(serialize = false)
	private Integer limit;

	/**
	 * 查询关键字
	 */
	@JSONField(serialize = false)
	private String key;

	// 删除标识(0:正常,1:已删除)
	@JSONField(serialize = false)
	private String isDeleted = DelFlag.NORMAL.toString();

	/**
	 * 创建时间
	 */
	@JSONField(serialize = false)
	private Date createTime;

	/**
	 * 修改时间
	 */
	@JSONField(serialize = false)
	private Date modifyTime;

	public BaseEntity() {
	}

	public Integer getStart() {
		return start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public String getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	
	
	
}
